const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  lintOnSave: process.env.NODE_ENV === "development",
  configureWebpack: {
    resolve: {
      alias: {
        "@": resolve("src"),
        _c: resolve("src/components"),
        _u: resolve("src/utils"),
        api: resolve("src/api"),
      },
    },
  },
};
